<!DOCTYPE html>
<html>

	<head>
		<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
	</head>

	<body> 
		<script type="text/javascript">
			$.ajax({
				url: 'http://127.0.0.1:8080/eLink/user/test', 
				type: 'GET',
				data: JSON.stringify({
					userName: 'winzip',
					address: 'password', 
				}),
				dataType: 'json',
				contentType: 'application/json;charset=UTF-8',
				success: function(result) {
					alert(result.result);
				},
				error: function(XMLHttpRequest, textStatus, errorThrown) {
					alert(XMLHttpRequest.status);
					alert(XMLHttpRequest.textStatus);
					alert(XMLHttpRequest.errorThrown);
				},
			});
		</script>
	</body>

</html>